package 面试.单例模式;

//import lombok.Getter;

public enum CountyEnum {
    ONE(1,"齐"),TWO(2,"楚"),THREE(3,"燕"),
    FOUR(4,"赵"),FIVE(5,"魏"),SIX(6,"韩");

//    @Getter
    private Integer retCode;
//    @Getter
    private String retMessage;

    CountyEnum(Integer retCode, String retMessage) {
        this.retCode = retCode;
        this.retMessage = retMessage;
    }

    public static CountyEnum forEachCountyEnum(int index) {
        CountyEnum[] values = CountyEnum.values();
//        for (CountyEnum element: values) {
//            if(index == element.getRetCode())
//                return element;
//        }
        return null;
    }
}
